package box;

import box.Box;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Hua YY
 * Date: 2025-06-16
 * Time: 9:18
 */
public class TestBox {
    public static void main(String[] args) {


        Box<Integer> box2 = new Box<>(new IntegerPrint());
        box2.setData(666);
        System.out.println(box2.getData());
        box2.printData();

        Box<String> box1 = new Box<>(new StringPrint());
        box1.setData("red");
        System.out.println(box1.getData());
    }
}
